package com.ucar.train.service.xumingzhi.ResultUtil;
/**
 * Desciption:
 *
 * @Author: XuMingZhi.
 * Creation time: 2019/8/22 8:36:00.
 * © Copyright 2013-2019, UCar.
 */
public enum ResultEnum {
    SUCCESS(200,"成功"),
    BAD_REQUEST(400, "请求错误，从上一个开始（如果存在）"),
    GONE(410,  "请求的资源不可用,终止服务"),
    REQUEST_TIMEOUT(408, "请求超时，尝试重连"),
    BAD_GATEWAY(502, "响应无效,终止服务")
    ;
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
